from django.db import models

# Create your models here.
class Product(models.Model):
    name = models.CharField(max_length=10)
    price = models.IntegerField()
    address = models.CharField(max_length=10)
    def __str__(self):
        return self.name
    class Meta:
        db_table = "product"

class Shopping(models.Model):
    name = models.CharField(max_length=10)
    num = models.IntegerField()
    price = models.IntegerField()
    def __str__(self):
        return self.name
    class Meta:
        db_table = "shopping"



